package com.ys.enume.storage;

public class TccFbaDeliverEnum {

	/**
	 * 标签状态
	 */
	public enum LabelState {
		UNPRINTED("FBA箱标未打印", 0),PRINTED("FBA箱标已打印", 1);
		public String name;
		public Integer value;

		private LabelState(String name, Integer value) {
			this.name = name;
			this.value = value;
		}
	}

	/**
	 * 货件状态
	 */
	public enum Status {
		CANCEL("发货单已取消", 0),NOTRANSSHIPPED("待转运", 1),TRANSSHIPPED("已转运", 2),COMPLETECANCEL("完成单已取消", 3),
		READYSHIPMENT("待发货", 4),DELIVERED("已发货", 5),;
		public String name;
		public Integer value;

		private Status(String name, Integer value) {
			this.name = name;
			this.value = value;
		}

		public static String getName(int value) {
			for (Status e : Status.values()) {
				if (e.value == value) {
					return e.name;
				}
			}

			return "";
		}
	}

	/**
	 * TCC_FbaDeliverItem ApiTrackStatus  api是否上传追踪编码
	 */
	public enum ApiTrackStatus {
		NO("未上传", 0),OVERTIME("上传追踪编码超时,等待第二天系统再次上传", 1),FAIL("上传追踪编码失败,请至亚马逊店铺手动上传追踪编码", 2),YES("已上传", 3);
		public String name;
		public Integer value;

		private ApiTrackStatus(String name, Integer value) {
			this.name = name;
			this.value = value;
		}
	}
}
